﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace AgileNYCWebService.Manager.Data.Table
{
	public class NotificationResult
	{
		public NotificationResult()
			: this(null)
		{

		}

		public NotificationResult(DataRow row)
		{
			if (row != null)
			{
				if (row.Table.Columns.Contains("Code"))
					Code = row["Code"].GetInteger(-1);
				if (row.Table.Columns.Contains("Name"))
					Name = row["Name"].GetString(string.Empty);
			}
		}

		public int Code { get; set; }
		public string Name { get; set; }
	}
}